package com.shiguiwu.springmybatis.spring.lifecycle.init;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.BeanPostProcessor;

/**
 * @description: 初始化后的调用
 * @author: stone
 * @date: Created by 2021/3/28 13:13
 * @version: 1.0.0
 * @pakeage: com.shiguiwu.springmybatis.spring.lifecycle.init
 */
public class MyBeanPostProcessor implements BeanPostProcessor {
    @Override
    public Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException {
        System.out.println("bean :" + beanName);
        System.out.println("初始化后》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》");
        return bean;
    }
}
